Platform Explorer / Nuxeo Platform 5.8

Contribution org.nuxeo.dam.layouts--filters

This contribution is part of XML component org.nuxeo.dam.layouts inside nuxeo-dam-jsf-5.8.jar

Extension Point

Extension point filters of component ActionService.

Contributed Items

  • <filter id="noCurrentDocument">
          <rule grant="true">
            <condition>currentDocument == null</condition>
          </rule>
        </filter>
  • <filter id="hasAssetFacet">
          <rule grant="true">
            <facet>Asset</facet>
          </rule>
        </filter>
  • <filter id="hasWorkflowProcess">
          <rule grant="true">
            <condition>#{routingActions.filteredRouteModels.size() &gt; 0}</condition>
          </rule>
        </filter>
  • <filter id="hasTasks">
          <rule grant="true">
            <condition>#{currentDashBoardItemsExceptPublishingTasks.size() &gt; 0}</condition>
          </rule>
        </filter>
  • <filter id="hasComments">
          <rule grant="true">
            <condition>#{documentThreadedComments.size() &gt; 0}</condition>
          </rule>
        </filter>
  • <filter id="canCreateNewAsset">
          <rule grant="true">
            <condition>#{damActions.canCreateNewAsset}</condition>
          </rule>
        </filter>
  • <filter id="hasVideoFacet">
          <rule grant="true">
            <facet>Video</facet>
          </rule>
        </filter>
  • <filter id="hasNotVideoFacet">
          <rule grant="false">
            <facet>Video</facet>
          </rule>
        </filter>
  • <filter id="hasNotPictureFacet">
          <rule grant="false">
            <facet>Picture</facet>
          </rule>
        </filter>
  • <filter id="hasAudioFacet">
          <rule grant="true">
            <facet>Audio</facet>
          </rule>
        </filter>
  • <filter id="hasNotAudioFacet">
          <rule grant="false">
            <facet>Audio</facet>
          </rule>
        </filter>

XML Source

<extension point="filters" target="org.nuxeo.ecm.platform.actions.ActionService">

    <filter id="noCurrentDocument">
      <rule grant="true">
        <condition>currentDocument == null</condition>
      </rule>
    </filter>

    <filter id="hasAssetFacet">
      <rule grant="true">
        <facet>Asset</facet>
      </rule>
    </filter>

    <filter id="hasWorkflowProcess">
      <rule grant="true">
        <condition>#{routingActions.filteredRouteModels.size() &gt; 0}</condition>
      </rule>
    </filter>

    <filter id="hasTasks">
      <rule grant="true">
        <condition>#{currentDashBoardItemsExceptPublishingTasks.size() &gt; 0}</condition>
      </rule>
    </filter>

    <filter id="hasComments">
      <rule grant="true">
        <condition>#{documentThreadedComments.size() &gt; 0}</condition>
      </rule>
    </filter>

    <filter id="canCreateNewAsset">
      <rule grant="true">
        <condition>#{damActions.canCreateNewAsset}</condition>
      </rule>
    </filter>

    <!-- TODO move those filters to audio and video modules -->
    <filter id="hasVideoFacet">
      <rule grant="true">
        <facet>Video</facet>
      </rule>
    </filter>

    <filter id="hasNotVideoFacet">
      <rule grant="false">
        <facet>Video</facet>
      </rule>
    </filter>

    <filter id="hasNotPictureFacet">
      <rule grant="false">
        <facet>Picture</facet>
      </rule>
    </filter>

    <filter id="hasAudioFacet">
      <rule grant="true">
        <facet>Audio</facet>
      </rule>
    </filter>

    <filter id="hasNotAudioFacet">
      <rule grant="false">
        <facet>Audio</facet>
      </rule>
    </filter>

  </extension>